﻿@using OA.AspNetCore.Html;

@model OA.Model.Form.UpdatePasswordForm

@{
    ViewBag.Title = "修改密码";
    Layout = "~/Areas/Admin/Views/Shared/_form_layout.cshtml";
    string errorMsg = ViewBag.Msg;
    string tips = string.Empty;
    if (!string.IsNullOrWhiteSpace(errorMsg))
    {
        tips = $"layer.msg('{errorMsg}');";
    }
}
<div class="fly-panel fly-panel-user" pad20="">
    <div class="layui-tab layui-tab-brief" lay-filter="user">
        <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding:0px;">
            @using (Html.BeginForm(FormMethod.Post, htmlAttributes: new { @class = "layui-form" }))
            {
                @Html.AntiForgeryToken()

                <div class="layui-form-item">
                    @Html.LabelFor(model => model.OldPassword, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.OldPassword)
                    </div>
                </div>

                <div class="layui-form-item">
                    @Html.LabelFor(model => model.NewPassWord, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.NewPassWord)
                    </div>
                </div>

                <div class="layui-form-item">
                    @Html.LabelFor(model => model.NewPassWord2, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.NewPassWord2)
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block" style="text-align:right;">
                        <input type="submit" value="提 交" class="layui-btn" />
                    </div>
                </div>
            }
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['form', 'laydate', 'layer', 'element'], function () {
        var form = layui.form,
            layer = layui.layer;
            @Html.Raw(tips)
    });

</script>
